package com.zhijian.medical.dao.local;


import com.zhijian.medical.entity.po.NewFile;
import com.zhijian.medical.entity.vo.request.NewFileSearchVo;
import com.zhijian.medical.entity.vo.response.NewFileVo;

import java.util.List;

public interface NewFileMapper {
    int deleteByPrimaryKey(Long id);

    int insert(NewFile record);

    int insertSelective(NewFile record);

    NewFile selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(NewFile record);

    int updateByPrimaryKey(NewFile record);

    int count(NewFileSearchVo newFileSearchVo);

    List<NewFileVo> selectList(NewFileSearchVo newFileSearchVo);

    NewFileVo selectVoById(Long id);

    /**
     * 根据类型查找最大编码
     *
     * @param type
     * @return
     */
    String selectMaxNumberByType(Byte type);

    /**
     * 根据类型查找最新的数据
     * @param type
     * @return
     */
    NewFileVo selectNewestVoByType(Integer type);
}